#pragma once
#include "libs.h"


class Animation
{
public:
	~Animation();
	/*
	tex		Handle of the texture holding animation frames.
	nframes Number of animation frames.
	FPS		Animation playback speed in frames per second.
	x		Texture x - coordinate of the first animation frame in texels.
	y		Texture y - coordinate of the first animation frame in texels.
	w		Animation frame width.
	h		Animation frame height.*/
	Animation(SDL_Texture *tex, int nframes, float FPS, int x, int y, int w, int h);

private:
	SDL_Texture *m_Tex;
	int m_iNumFrames;
	float m_fFPS;
	int m_iX, m_iY, m_iW, m_iH;
};

